<?php $__env->startSection('css'); ?>
<link href="<?php echo e(asset(getThemeAssets('dataTables/datatables.min.css', true))); ?>" rel="stylesheet">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="row wrapper border-bottom white-bg page-heading">
  <div class="col-lg-10">
    <h2><?php echo trans('permission.title'); ?></h2>
    <ol class="breadcrumb">
        <li>
            <a href="<?php echo e(url('admin')); ?>"><?php echo trans('home.title'); ?></a>
        </li>
        <li class="active">
            <strong><?php echo trans('permission.title'); ?></strong>
        </li>
    </ol>
  </div>
  <div class="col-lg-2">
    <div class="title-action">
      <?php if(haspermission('permissioncontroller.create')): ?>
      <a href="<?php echo e(route('permission.create')); ?>" class="btn btn-info"><i class="fa fa-plus"></i> <?php echo trans('common.create').trans('permission.slug'); ?></a>
      <?php endif; ?>
    </div>
  </div>
</div>
<div class="wrapper wrapper-content animated">
  <div class="row">
    <div class="col-lg-12">
      <div class="ibox">
        <div class="ibox-title">
          <h5><?php echo trans('permission.title'); ?></h5>
          <div class="ibox-tools">
            <a class="collapse-link">
              <i class="fa fa-chevron-up"></i>
            </a>
            <a class="close-link">
                <i class="fa fa-times"></i>
            </a>
          </div>
        </div>
        <div class="ibox-content">
          <?php echo $__env->make('flash::message', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
          <?php echo $html->table(['class' => 'table table-striped table-bordered table-hover']); ?>

        </div>
      </div>
    </div>
  </div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
  <script src="<?php echo e(asset(getThemeAssets('dataTables/datatables.min.js', true))); ?>"></script>
  <script src="<?php echo e(asset(getThemeAssets('layer/layer.js', true))); ?>"></script>
  <script type="text/javascript">
    $(document).on('click','.destroy_item',function() {
      var _item = $(this);
      var title = "<?php echo e(trans('common.deleteTitle').trans('permission.slug')); ?>？";
      layer.confirm(title, {
        btn: ['<?php echo e(trans('common.yes')); ?>', '<?php echo e(trans('common.no')); ?>'],
        icon: 5
      },function(index){
        _item.children('form').submit();
        layer.close(index);
      });
    });
  </script>
  <?php echo $html->scripts(); ?>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.'.getTheme(), array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>